﻿using Cofe.Core.Service;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Cofe.Core.Interfaces;

namespace Cofe.Core.Implements
{
    public class ManualServiceImporter : IServiceImporter
    {
        public ManualServiceImporter()
        {

        }

        public ManualServiceImporter(params ICofeService[] services)
        {
            RegisterService(services);
        }


        public IEnumerable<ICofeService> ImportServices()
        {
            return _services;
        }

        public void RegisterService(params ICofeService[] services)
        {
            _services.AddRange(services);
        }

        private List<ICofeService> _services = new List<ICofeService>();
    }
}
